<!DOCTYPE HTML>
<html lang="zh">
<head>
<title>Spring Data JPA - Spring Data JPA | Docs4dev</title>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="Spring Data JPA是更大的Spring Data系列的一部分，可以轻松实现基于JPA的存储库。此模块处理对基于JPA的数据访问层的增强支持。它使构建使用数据访问技术的Spring驱动应用程序变得更加容易。">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta property="og:type" content="website">
<meta property="og:title" content="Spring Data JPA - Spring Data JPA">
<meta property="og:url" content="https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/">
<meta property="og:site_name" content="Docs4dev">
<meta property="og:locale" content="zh_CN">
<meta name="twitter:card" content="Spring Data JPA是更大的Spring Data系列的一部分，可以轻松实现基于JPA的存储库。此模块处理对基于JPA的数据访问层的增强支持。它使构建使用数据访问技术的Spring驱动应用程序变得更加容易。">
<meta name="generator" content="Docs4dev template engine">
<link rel="stylesheet" href="static/css/app.min.css">
<link rel="shortcut icon" href="https://www.docs4dev.com/static/images/favicon.ico" type="image/x-icon">
<script async="" src="static/js/js.js"></script>
<script async="" src="static/js/adsbygoogle.js" crossorigin="anonymous"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'UA-129571937-1');
  </script>
<link rel="amphtml" href="https://www.docs4dev.com/amp/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/index.html">

<link rel="stylesheet" href="static/css/asciidoctor-spring.css">
<script type="application/ld+json">{"name":null,"headline":"Spring Data JPA-Spring Data JPA","inLanguage":"zh-CN","version":"2.1.5.RELEASE","image":"/static/icon/icon-spring-data.png","datePublished":"2021-05-20T12:51:01Z","dateCreated":"2021-05-20T12:51:01Z","dateModified":"2021-07-03T12:24:35Z","@context":"https://schema.org/","@type":"APIReference","abstract":"Spring Data JPA是更大的Spring Data系列的一部分，可以轻松实现基于JPA的存储库。此模块处理对基于JPA的数据访问层的增强支持。它使构建使用数据访问技术的Spring驱动应用程序变得更加容易。"}</script>
</head>
<body>
<div class="book with-summary">
<div class="book-summary">
<div class="logo">
<a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference');" style="color: inherit;">
<img src="static/picture/icon-spring-data.png" style="width: 48px; height: 48px;" alt="Logo">
</a>
<b style="color: inherit; margin-left: 8px;">Spring Data JPA</b>
</div>
<div class="item">
<div>
<label for="version">版本</label>
<select id="version" onchange="onVersionChange(this)">
<option value="1.11.18.RELEASE">1.11.18.RELEASE</option>
<option value="2.0.13.RELEASE">2.0.13.RELEASE</option>
<option value="2.1.5.RELEASE" selected="selected">2.1.5.RELEASE</option>
</select>
</div>
<div style="margin-top: 8px;">
<label for="language">语言</label>
<select id="language" onchange="onLangChange(this)" value="zh">
 <option value="en">English</option>
<option value="zh" selected="selected">中文</option>
</select>
</div>

</div>
<div class="item menus">
<a title="Table of Contents" style="margin-right: 8px;" href="#">
<i class="fa fa-chevron-left"></i>
<span style="margin-left: 2px;">返回目录</span>
</a>
</div>
<nav role="navigation" id="navigation">
<ul class="summary">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#preface');" title="Preface"> Preface </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#project');" title="1. Project Metadata"> 1. Project Metadata </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#new-features');" title="2. 新的和值得注意的"> 2. 新的和值得注意的 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#new-features.1-11-0');" title="2.1. Spring Data JPA 1.11 的新增功能"> 2.1. Spring Data JPA 1.11 的新增功能 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#new-features.1-10-0');" title="2.2. Spring Data JPA 1.10 的新增功能"> 2.2. Spring Data JPA 1.10 的新增功能 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#dependencies');" title="3. Dependencies"> 3. Dependencies </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#dependencies.spring-boot');" title="3.1. Spring Boot 的依赖 Management"> 3.1. Spring Boot 的依赖 Management </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#dependencies.spring-framework');" title="3.2. Spring 框架"> 3.2. Spring 框架 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories');" title="4. 使用 Spring 数据存储库"> 4. 使用 Spring 数据存储库 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.core-concepts');" title="4.1. 核心概念"> 4.1. 核心概念 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-methods');" title="4.2. 查询方法"> 4.2. 查询方法 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.definition');" title="4.3. 定义存储库接口"> 4.3. 定义存储库接口 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.definition-tuning');" title="4.3.1. 调整存储库定义"> 4.3.1. 调整存储库定义 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.nullability');" title="4.3.2. 存储库方法的空处理"> 4.3.2. 存储库方法的空处理 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.multiple-modules');" title="4.3.3. 将存储库与多个 Spring 数据模块一起使用"> 4.3.3. 将存储库与多个 Spring 数据模块一起使用 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-methods.details');" title="4.4. 定义查询方法"> 4.4. 定义查询方法 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-methods.query-lookup-strategies');" title="4.4.1. 查询查询策略"> 4.4.1. 查询查询策略 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-methods.query-creation');" title="4.4.2. 查询创建"> 4.4.2. 查询创建 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-methods.query-property-expressions');" title="4.4.3. 属性表达式"> 4.4.3. 属性表达式 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.special-parameters');" title="4.4.4. 特殊参数处理"> 4.4.4. 特殊参数处理 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.limit-query-result');" title="4.4.5. 限制查询结果"> 4.4.5. 限制查询结果 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-streaming');" title="4.4.6. 流式查询结果"> 4.4.6. 流式查询结果 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-async');" title="4.4.7. 异步查询结果"> 4.4.7. 异步查询结果 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.create-instances');" title="4.5. 创建存储库实例"> 4.5. 创建存储库实例 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.create-instances.spring');" title="4.5.1. XML 配置"> 4.5.1. XML 配置 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.create-instances.java-config');" title="4.5.2. JavaConfig"> 4.5.2. JavaConfig </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.create-instances.standalone');" title="4.5.3. 独立使用"> 4.5.3. 独立使用 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.custom-implementations');" title="4.6. Spring 数据存储库的定制实现"> 4.6. Spring 数据存储库的定制实现 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.single-repository-behavior');" title="4.6.1. 自定义单个存储库"> 4.6.1. 自定义单个存储库 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.customize-base-repository');" title="4.6.2. 自定义基础存储库"> 4.6.2. 自定义基础存储库 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#core.domain-events');" title="4.7. 从汇总根发布事件"> 4.7. 从汇总根发布事件 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#core.extensions');" title="4.8. Spring 数据扩展"> 4.8. Spring 数据扩展 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#core.extensions.querydsl');" title="4.8.1. Querydsl 扩展"> 4.8.1. Querydsl 扩展 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#core.web');" title="4.8.2. 网络支持"> 4.8.2. 网络支持 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#core.repository-populators');" title="4.8.3. 存储库填充器"> 4.8.3. 存储库填充器 </a> </li>
</ul> </li>
</ul> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#reference');" title="Reference Documentation"> Reference Documentation </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.repositories');" title="5. JPA Repositories"> 5. JPA Repositories </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.introduction');" title="5.1. Introduction"> 5.1. Introduction </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.namespace');" title="5.1.1. Spring 命名空间"> 5.1.1. Spring 命名空间 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.java-config');" title="5.1.2. 基于 Comments 的配置"> 5.1.2. 基于 Comments 的配置 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.bootstrap-mode');" title="5.1.3. 自举模式"> 5.1.3. 自举模式 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.entity-persistence');" title="5.2. 持久实体"> 5.2. 持久实体 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.entity-persistence.saving-entites');" title="5.2.1. 保存实体"> 5.2.1. 保存实体 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-methods');" title="5.3. 查询方法"> 5.3. 查询方法 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.sample-app.finders.strategies');" title="5.3.1. 查询查询策略"> 5.3.1. 查询查询策略 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-methods.query-creation');" title="5.3.2. 查询创建"> 5.3.2. 查询创建 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-methods.named-queries');" title="5.3.3. 使用 JPA 命名查询"> 5.3.3. 使用 JPA 命名查询 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-methods.at-query');" title="5.3.4. 使用@Query"> 5.3.4. 使用@Query </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-methods.sorting');" title="5.3.5. 使用排序"> 5.3.5. 使用排序 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.named-parameters');" title="5.3.6. 使用命名参数"> 5.3.6. 使用命名参数 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query.spel-expressions');" title="5.3.7. 使用 SpEL 表达式"> 5.3.7. 使用 SpEL 表达式 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.modifying-queries');" title="5.3.8. 修改查询"> 5.3.8. 修改查询 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-hints');" title="5.3.9. 应用查询提示"> 5.3.9. 应用查询提示 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.entity-graph');" title="5.3.10. 配置提取和加载图"> 5.3.10. 配置提取和加载图 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#projections');" title="5.3.11. Projections"> 5.3.11. Projections </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.stored-procedures');" title="5.4. 存储过程"> 5.4. 存储过程 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#specifications');" title="5.5. Specifications"> 5.5. Specifications </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#query-by-example');" title="5.6. 通过示例查询"> 5.6. 通过示例查询 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#query-by-example.introduction');" title="5.6.1. Introduction"> 5.6.1. Introduction </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#query-by-example.usage');" title="5.6.2. Usage"> 5.6.2. Usage </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#query-by-example.matchers');" title="5.6.3. 匹配器示例"> 5.6.3. 匹配器示例 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#query-by-example.execution');" title="5.6.4. 执行示例"> 5.6.4. 执行示例 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#transactions');" title="5.7. Transactionality"> 5.7. Transactionality </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#transactional-query-methods');" title="5.7.1. 事务查询方法"> 5.7.1. 事务查询方法 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#locking');" title="5.8. Locking"> 5.8. Locking </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#auditing');" title="5.9. Auditing"> 5.9. Auditing </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#auditing.basics');" title="5.9.1. Basics"> 5.9.1. Basics </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.auditing');" title="5.9.2. JPA 审核"> 5.9.2. JPA 审核 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.misc');" title="5.10. 其他注意事项"> 5.10. 其他注意事项 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.misc.jpa-context');" title="5.10.1. 在自定义实现中使用 JpaContext"> 5.10.1. 在自定义实现中使用 JpaContext </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.misc.merging-persistence-units');" title="5.10.2. 合并持久性单元"> 5.10.2. 合并持久性单元 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpd.misc.cdi-integration');" title="5.10.3. CDI 集成"> 5.10.3. CDI 集成 </a> </li>
</ul> </li>
</ul> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#appendix');" title="Appendix"> Appendix </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.namespace-reference');" title="附录 A：命名空间参考"> 附录 A：命名空间参考 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#populator.namespace-dao-config');" title="<repositories />元素"> &lt;repositories /&gt;元素 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#populator.namespace-reference');" title="附录 B：填充器名称空间参考"> 附录 B：填充器名称空间参考 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#namespace-dao-config');" title="<populator />元素"> &lt;populator /&gt;元素 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repository-query-keywords');" title="附录 C：存储库查询关键字"> 附录 C：存储库查询关键字 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#_supported_query_keywords');" title="支持的查询关键字"> 支持的查询关键字 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repository-query-return-types');" title="附录 D：Repositories 查询返回类型"> 附录 D：Repositories 查询返回类型 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#_supported_query_return_types');" title="支持的查询返回类型"> 支持的查询返回类型 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#faq');" title="附录 E：常见问题"> 附录 E：常见问题 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#_common');" title="Common"> Common </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#_infrastructure');" title="Infrastructure"> Infrastructure </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#_auditing');" title="Auditing"> Auditing </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#glossary');" title="附录 F：词汇表"> 附录 F：词汇表 </a> </li>
</ul> </li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<header class="book-header">
<div class="dropdown pull-right js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-globe"></i>
</a>
<div class="dropdown-menu dropdown-left">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('zh_CN')">中文</button>
</div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('en_US')">English</button>
</div>
</div>
</div>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign up" href="register.html">
<i class="fa fa-sign-in"></i> <span>注册</span>
</a>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign in" href="register.html">
<i class="fa fa-sign-in"></i>
<span>登录</span>
</a>
<a class="btn pull-left js-toolbar-action btn-summary" href="#"><i class="fa fa-align-justify"></i></a>
<div class="dropdown pull-left font-settings js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Font Settings" href="#">
<i class="fa fa-font"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-2 font-reduce">A</button>
<button class="button size-2 font-enlarge">A</button>
</div>
<div class="buttons">
<button class="button size-2 family-serif">Serif</button>
<button class="button size-2 family-sans">Sans</button>
</div>
<div class="buttons">
<button class="button size-3 theme-white">White</button>
<button class="button size-3 theme-sepia">Sepia</button>
<button class="button size-3 theme-night">Night</button>
</div>
</div>
</div>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Home" href="zh.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
 <i class="fa fa-book"></i> <span>API Docs</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Tools" href="index1.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
<div class="dropdown pull-left js-toolbar-action mobile">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-chevron-down"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<a class="button size-1" aria-label="Home" href="zh.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Tools" href="index1.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
</div>
</div>
</div>
<div id="autocomplete" class="pull-right"></div>
<span id="toolbar-title"></span>
</header>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<section class="normal markdown-section">
<div id="content">
<h1>Spring Data JPA</h1>
<div><ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6108808167664152" data-ad-slot="6964403648"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
<div><div class="divider">
<span class="divider-inner-text">Table of Contents</span>
</div>
<ul class="toc">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#preface');" title="Preface"> Preface </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#project');" title="1. Project Metadata"> 1. Project Metadata </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#new-features');" title="2. 新的和值得注意的"> 2. 新的和值得注意的 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#new-features.1-11-0');" title="2.1. Spring Data JPA 1.11 的新增功能"> 2.1. Spring Data JPA 1.11 的新增功能 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#new-features.1-10-0');" title="2.2. Spring Data JPA 1.10 的新增功能"> 2.2. Spring Data JPA 1.10 的新增功能 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#dependencies');" title="3. Dependencies"> 3. Dependencies </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#dependencies.spring-boot');" title="3.1. Spring Boot 的依赖 Management"> 3.1. Spring Boot 的依赖 Management </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#dependencies.spring-framework');" title="3.2. Spring 框架"> 3.2. Spring 框架 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories');" title="4. 使用 Spring 数据存储库"> 4. 使用 Spring 数据存储库 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.core-concepts');" title="4.1. 核心概念"> 4.1. 核心概念 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-methods');" title="4.2. 查询方法"> 4.2. 查询方法 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.definition');" title="4.3. 定义存储库接口"> 4.3. 定义存储库接口 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.definition-tuning');" title="4.3.1. 调整存储库定义"> 4.3.1. 调整存储库定义 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.nullability');" title="4.3.2. 存储库方法的空处理"> 4.3.2. 存储库方法的空处理 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.multiple-modules');" title="4.3.3. 将存储库与多个 Spring 数据模块一起使用"> 4.3.3. 将存储库与多个 Spring 数据模块一起使用 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-methods.details');" title="4.4. 定义查询方法"> 4.4. 定义查询方法 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-methods.query-lookup-strategies');" title="4.4.1. 查询查询策略"> 4.4.1. 查询查询策略 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-methods.query-creation');" title="4.4.2. 查询创建"> 4.4.2. 查询创建 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-methods.query-property-expressions');" title="4.4.3. 属性表达式"> 4.4.3. 属性表达式 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.special-parameters');" title="4.4.4. 特殊参数处理"> 4.4.4. 特殊参数处理 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.limit-query-result');" title="4.4.5. 限制查询结果"> 4.4.5. 限制查询结果 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-streaming');" title="4.4.6. 流式查询结果"> 4.4.6. 流式查询结果 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.query-async');" title="4.4.7. 异步查询结果"> 4.4.7. 异步查询结果 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.create-instances');" title="4.5. 创建存储库实例"> 4.5. 创建存储库实例 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.create-instances.spring');" title="4.5.1. XML 配置"> 4.5.1. XML 配置 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.create-instances.java-config');" title="4.5.2. JavaConfig"> 4.5.2. JavaConfig </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.create-instances.standalone');" title="4.5.3. 独立使用"> 4.5.3. 独立使用 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.custom-implementations');" title="4.6. Spring 数据存储库的定制实现"> 4.6. Spring 数据存储库的定制实现 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.single-repository-behavior');" title="4.6.1. 自定义单个存储库"> 4.6.1. 自定义单个存储库 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.customize-base-repository');" title="4.6.2. 自定义基础存储库"> 4.6.2. 自定义基础存储库 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#core.domain-events');" title="4.7. 从汇总根发布事件"> 4.7. 从汇总根发布事件 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#core.extensions');" title="4.8. Spring 数据扩展"> 4.8. Spring 数据扩展 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#core.extensions.querydsl');" title="4.8.1. Querydsl 扩展"> 4.8.1. Querydsl 扩展 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#core.web');" title="4.8.2. 网络支持"> 4.8.2. 网络支持 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#core.repository-populators');" title="4.8.3. 存储库填充器"> 4.8.3. 存储库填充器 </a> </li>
</ul> </li>
</ul> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#reference');" title="Reference Documentation"> Reference Documentation </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.repositories');" title="5. JPA Repositories"> 5. JPA Repositories </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.introduction');" title="5.1. Introduction"> 5.1. Introduction </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.namespace');" title="5.1.1. Spring 命名空间"> 5.1.1. Spring 命名空间 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.java-config');" title="5.1.2. 基于 Comments 的配置"> 5.1.2. 基于 Comments 的配置 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.bootstrap-mode');" title="5.1.3. 自举模式"> 5.1.3. 自举模式 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.entity-persistence');" title="5.2. 持久实体"> 5.2. 持久实体 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.entity-persistence.saving-entites');" title="5.2.1. 保存实体"> 5.2.1. 保存实体 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-methods');" title="5.3. 查询方法"> 5.3. 查询方法 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.sample-app.finders.strategies');" title="5.3.1. 查询查询策略"> 5.3.1. 查询查询策略 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-methods.query-creation');" title="5.3.2. 查询创建"> 5.3.2. 查询创建 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-methods.named-queries');" title="5.3.3. 使用 JPA 命名查询"> 5.3.3. 使用 JPA 命名查询 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-methods.at-query');" title="5.3.4. 使用@Query"> 5.3.4. 使用@Query </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-methods.sorting');" title="5.3.5. 使用排序"> 5.3.5. 使用排序 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.named-parameters');" title="5.3.6. 使用命名参数"> 5.3.6. 使用命名参数 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query.spel-expressions');" title="5.3.7. 使用 SpEL 表达式"> 5.3.7. 使用 SpEL 表达式 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.modifying-queries');" title="5.3.8. 修改查询"> 5.3.8. 修改查询 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.query-hints');" title="5.3.9. 应用查询提示"> 5.3.9. 应用查询提示 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.entity-graph');" title="5.3.10. 配置提取和加载图"> 5.3.10. 配置提取和加载图 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#projections');" title="5.3.11. Projections"> 5.3.11. Projections </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.stored-procedures');" title="5.4. 存储过程"> 5.4. 存储过程 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#specifications');" title="5.5. Specifications"> 5.5. Specifications </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#query-by-example');" title="5.6. 通过示例查询"> 5.6. 通过示例查询 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#query-by-example.introduction');" title="5.6.1. Introduction"> 5.6.1. Introduction </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#query-by-example.usage');" title="5.6.2. Usage"> 5.6.2. Usage </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#query-by-example.matchers');" title="5.6.3. 匹配器示例"> 5.6.3. 匹配器示例 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#query-by-example.execution');" title="5.6.4. 执行示例"> 5.6.4. 执行示例 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#transactions');" title="5.7. Transactionality"> 5.7. Transactionality </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#transactional-query-methods');" title="5.7.1. 事务查询方法"> 5.7.1. 事务查询方法 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#locking');" title="5.8. Locking"> 5.8. Locking </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#auditing');" title="5.9. Auditing"> 5.9. Auditing </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#auditing.basics');" title="5.9.1. Basics"> 5.9.1. Basics </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.auditing');" title="5.9.2. JPA 审核"> 5.9.2. JPA 审核 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.misc');" title="5.10. 其他注意事项"> 5.10. 其他注意事项 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.misc.jpa-context');" title="5.10.1. 在自定义实现中使用 JpaContext"> 5.10.1. 在自定义实现中使用 JpaContext </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpa.misc.merging-persistence-units');" title="5.10.2. 合并持久性单元"> 5.10.2. 合并持久性单元 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#jpd.misc.cdi-integration');" title="5.10.3. CDI 集成"> 5.10.3. CDI 集成 </a> </li>
</ul> </li>
</ul> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#appendix');" title="Appendix"> Appendix </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repositories.namespace-reference');" title="附录 A：命名空间参考"> 附录 A：命名空间参考 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#populator.namespace-dao-config');" title="<repositories />元素"> &lt;repositories /&gt;元素 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#populator.namespace-reference');" title="附录 B：填充器名称空间参考"> 附录 B：填充器名称空间参考 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#namespace-dao-config');" title="<populator />元素"> &lt;populator /&gt;元素 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repository-query-keywords');" title="附录 C：存储库查询关键字"> 附录 C：存储库查询关键字 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#_supported_query_keywords');" title="支持的查询关键字"> 支持的查询关键字 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#repository-query-return-types');" title="附录 D：Repositories 查询返回类型"> 附录 D：Repositories 查询返回类型 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#_supported_query_return_types');" title="支持的查询返回类型"> 支持的查询返回类型 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#faq');" title="附录 E：常见问题"> 附录 E：常见问题 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#_common');" title="Common"> Common </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#_infrastructure');" title="Infrastructure"> Infrastructure </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#_auditing');" title="Auditing"> Auditing </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-jpa/2.1.5.RELEASE/reference/all.html#glossary');" title="附录 F：词汇表"> 附录 F：词汇表 </a> </li>
</ul> </li>
</ul></div>
</div>
</section>
<div class="right-sidebar">
<div class="affix"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6108808167664152" data-ad-slot="3102929424" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
</div>
</div>
<div class="ft">
<a href="#toolbar-title" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a>
<footer class="footer">
<div class="footer__container--normal">
<img alt="扫码关注公众号" title="扫码关注公众号" src="static/picture/qr-code.png" width="170" height="170">
<div class="footer__description--normal">
<p class="paragraph footer__author--normal">Docs4dev<sup class="super">&#xAE;</sup>
</p>
<p class="paragraph footer__quote&#45;&#45;normal">
如果你在使用过程中遇到任何问题，可以在 <a href="javascript:window.open('https://github.com/docs4dev/docs4dev-issues');" target="_blank" rel="noopener noreferrer">这里<i class="fa fa-external-link"></i></a> 提issue。
</p>
<div class="footer__main--normal">
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
<a href="javascript:window.open('https://beian.miit.gov.cn/');">
蜀ICP备14021783号-6
</a>
</p>
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
Copyright &#xA9; Docs4dev all
right reserved, powered by <a href="index2.html" target="_blank">Docs4dev</a></p>
</div>
</div>
</div>
<div class="box__issues">
</div>
</footer>
</div>
</div>
</div>
</div>
</div>
<script>
  var hasToc = true;
  /*  var downloadable = /!*false*!/ false;
    var editable = /!*false*!/ false;
    var code = /!*"spring-data-jpa"*!/ false;
    var version = /!*"2.1.5.RELEASE"*!/ false;
    var type = /!*"reference"*!/ false;
    var lang = /!*"zh"*!/ 'en';
    //edit link
    require(["gitbook", "jQuery"], function (gitbook, $) {
      gitbook.events.bind('start', function (e, config) {
        // Add edit toolbar to left
        var chapterId = /!*16321*!/ 0;
        if (downloadable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-download',
            text: '下载',
            onClick: function () {
              window.open('/download?code=' + code + '&version=' + version + '&type=' + type + '&lang=' + lang);
            }
          });
        }
        if (editable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-edit',
            text: '编辑此页',
            onClick: function () {
              window.open('/docs/edit?chapterId=' + chapterId + '&lang=' + lang);
            }
          });
        }
      });
    });*/
</script>
<script>
    var code = "spring-data-jpa";
    var lang = "zh";
  </script>

<script src="static/js/autocomplete-js.js"></script>
<script src="static/js/app.min.js"></script>
<script src="static/js/search.min.js"></script>
</body>
</html>
